package com.ruoyi.study.exam.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.study.exam.mapper.StuExamRepoMapper;
import com.ruoyi.study.exam.domain.StuExamRepo;
import com.ruoyi.study.exam.service.IStuExamRepoService;

/**
 * 考试题库Service业务层处理
 * 
 * @author twj
 * @date 2023-05-18
 */
@Service
public class StuExamRepoServiceImpl implements IStuExamRepoService 
{
    @Autowired
    private StuExamRepoMapper stuExamRepoMapper;

    /**
     * 查询考试题库
     * 
     * @param id 考试题库主键
     * @return 考试题库
     */
    @Override
    public StuExamRepo selectStuExamRepoById(String id)
    {
        return stuExamRepoMapper.selectStuExamRepoById(id);
    }

    /**
     * 查询考试题库列表
     * 
     * @param stuExamRepo 考试题库
     * @return 考试题库
     */
    @Override
    public List<StuExamRepo> selectStuExamRepoList(StuExamRepo stuExamRepo)
    {
        return stuExamRepoMapper.selectStuExamRepoList(stuExamRepo);
    }

    /**
     * 新增考试题库
     * 
     * @param stuExamRepo 考试题库
     * @return 结果
     */
    @Override
    public int insertStuExamRepo(StuExamRepo stuExamRepo)
    {
        return stuExamRepoMapper.insertStuExamRepo(stuExamRepo);
    }

    /**
     * 修改考试题库
     * 
     * @param stuExamRepo 考试题库
     * @return 结果
     */
    @Override
    public int updateStuExamRepo(StuExamRepo stuExamRepo)
    {
        return stuExamRepoMapper.updateStuExamRepo(stuExamRepo);
    }

    /**
     * 批量删除考试题库
     * 
     * @param ids 需要删除的考试题库主键
     * @return 结果
     */
    @Override
    public int deleteStuExamRepoByIds(String[] ids)
    {
        return stuExamRepoMapper.deleteStuExamRepoByIds(ids);
    }

    /**
     * 删除考试题库信息
     * 
     * @param id 考试题库主键
     * @return 结果
     */
    @Override
    public int deleteStuExamRepoById(String id)
    {
        return stuExamRepoMapper.deleteStuExamRepoById(id);
    }
}
